//
//  LJUserpic.h
//  LJClientKit
//
//  Created by che on 13/7/09.
//  Copyright 2009 AntonChebotaev. All rights reserved.
//
//  
// Class responsible for representing livejournal userpic, store and download it
//

#import <Cocoa/Cocoa.h>

// Exceptions
FOUNDATION_EXPORT NSString * const LJUserpicBadInitException;

// Notifications
FOUNDATION_EXPORT NSString * const LJUserpicWillLoadImageNotification;
FOUNDATION_EXPORT NSString * const LJUserpicDidLoadImageNotification;

@interface LJUserpic : NSObject  <NSCoding> {
	NSString* keyword;
	NSURL* url;
	NSImage* image;
}

@property (readonly) NSString* keyword;
@property (readonly) NSURL* url;
@property (readonly) NSImage* image;

- initWithKeyword:(NSString*)keyword andURL:(NSURL*)url;
+ userpicWithKeyword:(NSString*)keyword andURL:(NSURL*)url;

- (void)reloadImage;

@end
